package cn.seaboot.flake.entity;


import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * POJO
 * 数据库标准表 [t_db_norm_table]
 *
 * @author ChenSS on 2018/4/28.
 */
@Schema(description = "数据库标准表 [t_db_norm_table] 实体类")
public class NormTable implements Serializable {
    private static final long serialVersionUID = 363116343686995789L;
    /**
     * 数据库名称
     */
    @Size(max = 255)
    @Schema(description = "数据库名称")
    private String schemaName;
    /**
     * 表名
     */
    @Size(max = 64)
    @Schema(description = "表名")
    private String tableName;
    /**
     * 表别名
     */
    @Size(max = 64)
    @Schema(description = "表别名")
    private String tableAlias;
    /**
     * 中文描述
     */
    @Size(max = 255)
    @Schema(description = "中文描述")
    private String tableComment;
    /**
     * 列数据
     */
    private List<NormColumn> columns;

    public String getSchemaName() {
        return schemaName;
    }

    public void setSchemaName(String schemaName) {
        this.schemaName = schemaName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTableAlias() {
        return tableAlias;
    }

    public void setTableAlias(String tableAlias) {
        this.tableAlias = tableAlias;
    }

    public String getTableComment() {
        return tableComment;
    }

    public void setTableComment(String tableComment) {
        this.tableComment = tableComment;
    }

    public List<NormColumn> getColumns() {
        return columns;
    }

    public void setColumns(List<NormColumn> columns) {
        this.columns = columns;
    }

    @Override
    public String toString() {
        return "NormTable{" +
                "schemaName='" + schemaName + '\'' +
                ", tableName='" + tableName + '\'' +
                ", tableAlias='" + tableAlias + '\'' +
                ", tableComment='" + tableComment + '\'' +
                ", columns=" + columns +
                '}';
    }
}
